import request from '@/utils/request'

// 查询考试记录列表
export function listExamRecord(query) {
  return request({
    url: '/examination/examRecord/list',
    method: 'get',
    params: query
  })
}

// 查询考试记录详细
export function getExamRecord(examRecordId) {
  return request({
    url: '/examination/examRecord/' + examRecordId,
    method: 'get'
  })
}

// 新增考试记录
export function addExamRecord(data) {
  return request({
    url: '/examination/examRecord',
    method: 'post',
    data: data
  })
}

// 修改考试记录
export function updateExamRecord(data) {
  return request({
    url: '/examination/examRecord',
    method: 'put',
    data: data
  })
}

// 删除考试记录
export function delExamRecord(examRecordId) {
  return request({
    url: '/examination/examRecord/' + examRecordId,
    method: 'delete'
  })
}


//列表
export function getExamList(query) {
  return request({
    url: '/examination/examRecord/getExamList',
    method: 'get',
    params: query
  })
}

//列表
export function getExamListByClassId(query) {
  return request({
    url: '/examination/examRecord/getExamListByClassId',
    method: 'get',
    params: query
  })
}

//查询考卷详情
export function getExamRecordInfo(query) {
  return request({
    url: '/examination/examRecord/getExamRecordInfo',
    method: 'get',
    params: query
  })
}

